package com.jeremyfeinstein.slidingmenu.lib;

import android.graphics.Point;

import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.CanvasTranPosition;

public class CanvasTranPositionBuilder {
    
	
	public static CanvasTranPosition line(){
		
		return new CanvasTranPosition(){

			@Override
			public Point transformTo(int x, int y, float percentOpen) {
				if(percentOpen==0)
					return new Point(x,y);
				return new Point(-(int) (x/percentOpen-x),y);
			}	
		};
	}
}
